home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global FB, SB, TB, HB, score
- if TB = 1 then
- set HB to 1
- end if
- if TB = 1 then
- set TB to 0
- end if
- if HB = 1 then
- set score to score + 1
- end if
- if HB = 1 then
- set HB to 0
- end if
- if SB = 1 then
- set HB to 1
- end if
- if SB = 1 then
- set SB to 0
- end if
- if HB = 1 then
- set score to score + 1
- end if
- if HB = 1 then
- set HB to 0
- end if
- if FB = 1 then
- set HB to 1
- end if
- if FB = 1 then
- set FB to 0
- end if
- if HB = 1 then
- set score to score + 1
- end if
- set HB to 1
- if HB = 1 then
- set score to score + 1
- end if
- if HB = 1 then
- set HB to 0
- end if
- if FB = 1 then
- set the visible of sprite 40 to 1
- end if
- if SB = 1 then
- set the visible of sprite 41 to 1
- end if
- if TB = 1 then
- set the visible of sprite 42 to 1
- end if
- if HB = 1 then
- set the visible of sprite 43 to 1
- end if
- if FB = 0 then
- set the visible of sprite 40 to 0
- end if
- if SB = 0 then
- set the visible of sprite 41 to 0
- end if
- if TB = 0 then
- set the visible of sprite 42 to 0
- end if
- if HB = 0 then
- set the visible of sprite 43 to 0
- end if
- set the text of cast 13 to string(score)
- updateStage()
- end
-
- on exitFrame
- play frame "atbats"
- end
-